#include "registerdialog.h"
#include "ui_registerdialog.h"

RegisterDialog::RegisterDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::RegisterDialog)
{
    ui->setupUi(this);

    // 注册密码栏设置为密码
    ui->pass_edit->setEchoMode(QLineEdit::Password);
    ui->review_edit->setEchoMode(QLineEdit::Password);
    // 绑定 取消按钮的信号与槽函数
    connect(ui->cancel_btn, &QPushButton::clicked, this, &RegisterDialog::switchLogin);
}

RegisterDialog::~RegisterDialog()
{
    delete ui;
}
